
from flask import Flask
# from view.endSrc.MyLogger import MyLogger
from view.endSrc.MySqlConn import MySqlConn
from view.endSrc.DBConfig import DBConfig
from view import route

app = Flask(__name__, template_folder='../templates', static_folder='../static')  # app is object of Flask
app.secret_key = 'abc'
app.config['MySqlConn'] = MySqlConn(DBConfig('web_log'))

app.register_blueprint(route.ac)

if __name__ == '__main__':
    # app = flask.Flask(__name__)
    # app.run('127.0.0.1', 8080, debug=True)
    app.run('0.0.0.0', 8080, debug=True)
